import { createRouter, createWebHistory } from "vue-router";

// 制定路由规则
const routes = [
   {
      path: '/',
      name: 'HelloWorld',
      component: () => import("@/views/HelloWorld.vue"),
   }
];

/**创建路由 */
const router = createRouter({
   // 设置路由模式 
   history: createWebHistory(),
   routes,
});

export default router;